s = "hello yuan"

print(s[6])
print(s[0:5])
print(s[6:])
print(s[:5])
print(s[:])

print(s[-4:])
print(s[::-1])

print(s[3:0:-1])
print(s[0:3])
print(s[-2:-4:-1])